package red.stu.mc.mod.codeblock.event;

import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.world.BlockEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

public class EventLoader {
	
	public EventLoader() {
		MinecraftForge.EVENT_BUS.register(this);
	}
	
	// 方块被破坏
	@SubscribeEvent
	public boolean onBlockDestroyed(BlockEvent.BreakEvent event) {
		// event.getPlayer()
		System.out.println("\n" + "方块被破坏:" + event.getState().getBlock().getLocalizedName());
		return true;
	}
}
